﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PropertyManageMenu.master" AutoEventWireup="true"
    CodeBehind="RepairIssueManage.aspx.cs" Inherits="RealtyManagementSystem.Web.RealtyManagers.RepairIssueManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="menuHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="RepairRecordId" DataSourceID="EntityDataSource1"
        ForeColor="#333333" GridLines="None" OnRowDeleting="GridView1_RowDeleting"
        onrowcommand="GridView1_RowCommand" CssClass="repair_view" Width="100%">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="RepairRecordId" HeaderText="编号" ReadOnly="True" SortExpression="RepairRecordId" />
            <asp:BoundField DataField="aspnet_Users.UserName" HeaderText="创建者" ReadOnly="True"
                SortExpression="aspnet_Users" />
            <asp:BoundField DataField="RepairItemDesc" HeaderText="维修信息" ReadOnly="True" SortExpression="RepairItemDesc" />
            <asp:BoundField DataField="CreateDate" DataFormatString="{0:yyyy/MM/dd}" HeaderText="提交时间"
                ReadOnly="True" SortExpression="CreateDate" />
            <asp:BoundField DataField="AccepterId" HeaderText="采纳人" ReadOnly="True" SortExpression="AccepterId"
                Visible="False" />
            <asp:BoundField DataField="AcceptDate" DataFormatString="{0:yyyy/MM/dd}" HeaderText="采纳时间"
                ReadOnly="True" SortExpression="AcceptDate" />
            <asp:BoundField DataField="CreaterVerification" HeaderText="用户反馈" ReadOnly="True"
                SortExpression="CreaterVerification" />
            <asp:TemplateField HeaderText="状态" InsertVisible="False" SortExpression="RepairIssueStatu">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RepairIssueStatu.Name") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("RepairIssueStatu.Name") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>

            <asp:ButtonField CommandName="alter" HeaderText="操作" Text="完成" />

        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=realtydbEntities"
        DefaultContainerName="realtydbEntities" EnableDelete="True" EnableFlattening="False"
        EnableInsert="True" EnableUpdate="True" EntitySetName="RepairIssues" Include="aspnet_Users, RepairIssueStatu">
    </asp:EntityDataSource>
</asp:Content>